package com.ctg.payroll2.dao.social;

import java.sql.SQLException;
import java.util.List;

import com.ctg.payroll2.bean.filter.social.CsSocialFilter;
import com.ctg.payroll2.bean.po.social.CsSocial;
import com.ctg.payroll2.bean.po.social.CsSocialDetail;
import com.ctg.payroll2.bean.po.social.CsTemplateSocialItemSearchBean;
import com.ctg.platform.util.Page;

public interface CustomTemplateDao{
	Page queryCustomTemplateByFilter(CsSocialFilter filter);
	Long insertCsSocial(CsSocial csSocial);
	List<CsSocial> getCsSocialByTemplateId(Long id);
	List<CsSocialDetail> getCsSocialDetailByTemplateId(Long id);
	void updateCsSocial(CsSocial csSocial);
	void insertCsSocialDetail(CsTemplateSocialItemSearchBean detail);
	void updateCsSocialDetail(CsTemplateSocialItemSearchBean detail);
	void deleteCsSocialDetailByIds(String detailIds) throws SQLException;
	void deleteCsSocialByIds(String ids) throws SQLException;
	List getPbSocialItemByFilter(String templateId);
}
